import request from '@/utils/request'

// 查询请假申请列表
export function listHumanLeave(query) {
  return request({
    url: '/oa/humanLeave/list',
    method: 'get',
    params: query
  })
}

// 查询请假申请详细
export function getHumanLeave(id) {
  return request({
    url: '/oa/humanLeave/' + id,
    method: 'get'
  })
}

// 新增请假申请
export function addHumanLeave(data) {
  return request({
    url: '/oa/humanLeave',
    method: 'post',
    data: data
  })
}

// 修改请假申请
export function updateHumanLeave(data) {
  return request({
    url: '/oa/humanLeave',
    method: 'put',
    data: data
  })
}

// 删除请假申请
export function delHumanLeave(id) {
  return request({
    url: '/oa/humanLeave/' + id,
    method: 'delete'
  })
}
